package com.jesse.eclgy.plug.workflow.entity;



import cn.hutool.core.convert.Convert;

import java.util.HashMap;

/**
 * @Author: jesse
 * @Date: 2022/6/15 19:05
 */
public class CustomMap extends HashMap<String, Object> {

    private static final long serialVersionUID = 1L;

    public Integer getInteger(String key) {
        return Convert.toInt(get(key), -1);
    }

    public int getInt(String key) {
        return Convert.toInt(get(key), -1);
    }

    public String getString(String key) {
        return String.valueOf(get(key));
    }
}

